package com.sinodata.bsm.common.vo;

// default package

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * DimensionUsability entity.
 * 
 * @author MyEclipse Persistence Tools
 */
//@Entity
//@Table(name = "DIMENSION_USABILITY")
public class DimensionUsability implements java.io.Serializable {

    // Fields

    private Long id;
    private Long resUsabilityId;
    private Long dimId;

    // Constructors

    /** default constructor */
    public DimensionUsability() {
    }

    /** minimal constructor */
    public DimensionUsability(Long id) {
        this.id = id;
    }

    /** full constructor */
    public DimensionUsability(Long id, Long resUsabilityId, Long dimId) {
        this.id = id;
        this.resUsabilityId = resUsabilityId;
        this.dimId = dimId;
    }

    // Property accessors
    @Id
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "sequence")
    @SequenceGenerator(name = "sequence", sequenceName = "DIMENSION_USABILITY_SEQ")
    @Column(name = "ID", unique = true, nullable = false, insertable = true, updatable = true, precision = 22, scale = 0)
    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Column(name = "USABILITY_ID", unique = false, nullable = true, insertable = true, updatable = true, precision = 22, scale = 0)
    public Long getResUsabilityId() {
        return resUsabilityId;
    }

    public void setResUsabilityId(Long resUsabilityId) {
        this.resUsabilityId = resUsabilityId;
    }

    @Column(name = "DIM_ID", unique = false, nullable = true, insertable = true, updatable = true, precision = 22, scale = 0)
    public Long getDimId() {
        return this.dimId;
    }

    public void setDimId(Long dimId) {
        this.dimId = dimId;
    }

}